import { GetProductionLineListData } from "./apiTypes"
import request from "/@/utils/request"


/**
 * 获取job列表
 * @param data
 */
export function getJobList(data?: any) {
    return request({
        url: '/wms/Job/GetJobList',
        method: 'post',
        data: data
    })
}

/**
 * 根据jobid获取Jobdetail
 * @param data
 */
export function getJobdetailByJobId(data?: any) {
    return request({
        url: '/wms/Job/GetJobdetailByJobId',
        method: 'post',
        data: data
    })
}

/**
 * 根据Jobdetailid获取Jobdetailsrc
 * @param data
 */
export function getJobdetailsrcByJobDetailId(data?: any) {
    return request({
        url: '/wms/Job/GetJobdetailsrcByJobDetailId',
        method: 'post',
        data: data
    })
}

/**
 * 所有更新job的操作
 * @param data
 */
export function updateJob(data?: any) {
    return request({
        url: '/wms/Job/UpdateJob',
        method: 'post',
        data: data
    })
}

/**
 * 获取所有job类型
 * @param data
 */
export function getAllJobType(data?: any) {
    return request({
        url: '/wms/Job/GetAllJobType',
        method: 'post',
        data: data
    })
}

/**
 * 删除job
 * @param data
 */
export function deleteJob(data?: any) {
    return request({
        url: '/wms/Job/DeleteJob',
        method: 'post',
        data: data
    })
}

/**
 * 修改job_detail的业务日期
 * @param data
 */
export function updateJobDBusindate(data?: any) {
    return request({
        url: '/wms/Job/updateJobDBusindate',
        method: 'post',
        data: data
    })
}

/**
 * 修改job报工数量
 * @param data
 */
export function updateJobReportQty(data?: any) {
    return request({
        url: '/wms/Job/updateJobReportQty',
        method: 'post',
        data: data
    })
}